package com.youngjun.generator;

public class JavaFieldType {

    private String jdbcType;
    private String className;
    private String simpleClassName;

    public JavaFieldType(String jdbcType, String className) {
        this.jdbcType = jdbcType;
        this.className = className;
        this.simpleClassName = className.substring(className.lastIndexOf(".") + 1);
    }

    public String getJdbcType() {
        return jdbcType;
    }

    public JavaFieldType setJdbcType(String jdbcType) {
        this.jdbcType = jdbcType;
        return this;
    }

    public String getClassName() {
        return className;
    }

    public JavaFieldType setClassName(String className) {
        this.className = className;
        return this;
    }

    public String getSimpleClassName() {
        return simpleClassName;
    }

    public JavaFieldType setSimpleClassName(String simpleClassName) {
        this.simpleClassName = simpleClassName;
        return this;
    }
}
